package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.annotation.Excels;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 案卷信息对象 record_archive
 *
 * @author admin
 * @date 2022-02-21
 */
public class RecordArchive extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    private Long archiveId;

    /**
     * 档案号
     */
    @Excel(name = "档案号")
    private String archiveNo;

    /**
     * 分类ID
     */
    @Excel(name = "分类ID")
    private Long typeId;

    /**
     * 题名
     */
    @Excel(name = "题名")
    private String archiveName;

    /**
     * 副题名
     */
    @Excel(name = "副题名")
    private String subName;

    /**
     * 责任者
     */
    @Excel(name = "责任者")
    private String dutyName;

    /**
     * 保存年限
     */
    @Excel(name = "保存年限")
    private String limitYear;

    /**
     * 所在盒号
     */
    @Excel(name = "所在盒号")
    private String boxNo;

    /**
     * 所在柜号
     */
    @Excel(name = "所在柜号")
    private String cupboardNo;

    /**
     * 档案分类对象
     */
    @Excels({
            @Excel(name = "类别名称", targetAttr = "typeName", type = Excel.Type.EXPORT),
    })
    private RecordType recordType;

    /**
     * 案卷目录配置信息
     */
    private List<RecordArchiveset> recordArchivesetList;

    public RecordType getRecordType() {
        return recordType;
    }

    public void setRecordType(RecordType recordType) {
        this.recordType = recordType;
    }

    public Long getArchiveId() {
        return archiveId;
    }

    public void setArchiveId(Long archiveId) {
        this.archiveId = archiveId;
    }

    public String getArchiveNo() {
        return archiveNo;
    }

    public void setArchiveNo(String archiveNo) {
        this.archiveNo = archiveNo;
    }

    public Long getTypeId() {
        return typeId;
    }

    public void setTypeId(Long typeId) {
        this.typeId = typeId;
    }

    public String getArchiveName() {
        return archiveName;
    }

    public void setArchiveName(String archiveName) {
        this.archiveName = archiveName;
    }

    public String getSubName() {
        return subName;
    }

    public void setSubName(String subName) {
        this.subName = subName;
    }

    public String getDutyName() {
        return dutyName;
    }

    public void setDutyName(String dutyName) {
        this.dutyName = dutyName;
    }

    public String getLimitYear() {
        return limitYear;
    }

    public void setLimitYear(String limitYear) {
        this.limitYear = limitYear;
    }

    public String getBoxNo() {
        return boxNo;
    }

    public void setBoxNo(String boxNo) {
        this.boxNo = boxNo;
    }

    public String getCupboardNo() {
        return cupboardNo;
    }

    public void setCupboardNo(String cupboardNo) {
        this.cupboardNo = cupboardNo;
    }

    public List<RecordArchiveset> getRecordArchivesetList() {
        return recordArchivesetList;
    }

    public void setRecordArchivesetList(List<RecordArchiveset> recordArchivesetList) {
        this.recordArchivesetList = recordArchivesetList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("archiveId", getArchiveId())
                .append("archiveNo", getArchiveNo())
                .append("typeId", getTypeId())
                .append("archiveName", getArchiveName())
                .append("subName", getSubName())
                .append("dutyName", getDutyName())
                .append("limitYear", getLimitYear())
                .append("boxNo", getBoxNo())
                .append("cupboardNo", getCupboardNo())
                .append("recordArchivesetList", getRecordArchivesetList())
                .toString();
    }
}
